package simulation;

import java.util.ArrayList;
import java.util.List;

/**
 * 被观察者
 *
 * @author ml
 * @create 2017-12-13--10:21
 */
public class LoginOriginal {

    private List<ObserverInterface> loginInterfaces=new ArrayList<>();

    public void addObject(ObserverInterface addObject){
        loginInterfaces.add(addObject);
    }

    public void loginSuccess(){
        for(ObserverInterface loginOriginal:loginInterfaces){
            loginOriginal.onSuccess(this);
        }
    }


}
